package restaurant;

/**
 * The Command object to get the orders.
 * 
 * @author Ebonie
 */

public class cmdGetOrders implements Command
{

	/** The info. */
	private InformationAggregator info;



	/**
	 * Instantiates a new cmd get orders.
	 *
	 * @param info the info
	 */
	public cmdGetOrders(InformationAggregator info) {
		this.info = info;
	}



	/**
	 * Execute.
	 *
	 * @return the object
	 * @see restaurant.Command#execute()
	 */
	@Override
	public Object execute()
	{
		CustomerOrders orders = info.getOrders();
		return orders.getOrders();
	}

}
